package com.lry.spi.test;

import com.lry.spi.URL;

/**
 * @author JiangJie
 * @create 2020-12-22 18:28
 */
public class HelloWrapper implements Hello {

    private Hello hello;

    public HelloWrapper(Hello hello) {
        this.hello = hello;
    }


    @Override
    public String sayHello(String name) {
        System.out.println("wrapper " +name);
        return  hello.sayHello(name);
    }

    @Override
    public String ada(URL url) {
        return "wrapper ada";
    }
}
